

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>rbd-mirror – 可同步 RBD 映像的守护进程 &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../../../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../../../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../../../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../../../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../../../" src="../../../_static/documentation_options.js"></script>
        <script src="../../../_static/jquery.js"></script>
        <script src="../../../_static/underscore.js"></script>
        <script src="../../../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../../../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../../../genindex/" />
    <link rel="search" title="Search" href="../../../search/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../../../" class="icon icon-home"></a> &raquo;</li>
        
      <li>rbd-mirror – 可同步 RBD 映像的守护进程</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../../../_sources/man/8/rbd-mirror.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../../../">
          

          
            
            <img src="../../../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../../../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul>
<li class="toctree-l1"><a class="reference internal" href="../../../start/intro/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../glossary/">Ceph 术语</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../jaegertracing/">Tracing</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../../../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="rbd-mirror-rbd">
<h1>rbd-mirror – 可同步 RBD 映像的守护进程<a class="headerlink" href="#rbd-mirror-rbd" title="Permalink to this headline">¶</a></h1>
<div class="section" id="id1">
<h2>提纲<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
<div class="line-block">
<div class="line"><strong>rbd-mirror</strong></div>
</div>
</div>
<div class="section" id="id2">
<h2>描述<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
<p><strong class="program">rbd-mirror</strong> 是个守护进程，用于在 Ceph 集群间异步地镜像 RADOS 块设备（ rbd ）映像。它可以在远端集群重放本地集群内的映像变更，以实现异地灾备。</p>
<p>它用 RADOS 协议连接远端集群，需要从默认路径搜索
ceph.conf 配置文件、监视器地址、
及其认证信息，即 <code class="docutils literal notranslate"><span class="pre">/etc/ceph/$cluster.conf</span></code> 、
<code class="docutils literal notranslate"><span class="pre">/etc/ceph/$cluster.keyring</span></code> 和
<code class="docutils literal notranslate"><span class="pre">/etc/ceph/$cluster.$name.keyring</span></code> ，其中 <code class="docutils literal notranslate"><span class="pre">$cluster</span></code>
表示自定义的集群名字、 <code class="docutils literal notranslate"><span class="pre">$name</span></code> 表示连接时所用的 rados 用户，
如 <code class="docutils literal notranslate"><span class="pre">client.rbd-mirror</span></code> 。</p>
</div>
<div class="section" id="id3">
<h2>选项<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
<dl class="std option">
<dt id="cmdoption-rbd-mirror-c">
<span id="cmdoption-rbd-mirror-conf"></span><code class="sig-name descname"><span class="pre">-c</span></code><code class="sig-prename descclassname"> <span class="pre">ceph.conf</span></code><code class="sig-prename descclassname"><span class="pre">,</span> </code><code class="sig-name descname"><span class="pre">--conf</span></code><code class="sig-prename descclassname"><span class="pre">=ceph.conf</span></code><a class="headerlink" href="#cmdoption-rbd-mirror-c" title="Permalink to this definition">¶</a></dt>
<dd><p>在启动期间，读取指定的配置文件 <code class="docutils literal notranslate"><span class="pre">ceph.conf</span></code> ，而不是默认的 <code class="docutils literal notranslate"><span class="pre">/etc/ceph/ceph.conf</span></code> ，并从中提取监视器地址。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-rbd-mirror-m">
<code class="sig-name descname"><span class="pre">-m</span></code><code class="sig-prename descclassname"> <span class="pre">monaddress[:port]</span></code><a class="headerlink" href="#cmdoption-rbd-mirror-m" title="Permalink to this definition">¶</a></dt>
<dd><p>连接到指定监视器（而非在 <code class="docutils literal notranslate"><span class="pre">ceph.conf</span></code> 里面找）。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-rbd-mirror-i">
<span id="cmdoption-rbd-mirror-id"></span><code class="sig-name descname"><span class="pre">-i</span></code><code class="sig-prename descclassname"> <span class="pre">ID</span></code><code class="sig-prename descclassname"><span class="pre">,</span> </code><code class="sig-name descname"><span class="pre">--id</span></code><code class="sig-prename descclassname"> <span class="pre">ID</span></code><a class="headerlink" href="#cmdoption-rbd-mirror-i" title="Permalink to this definition">¶</a></dt>
<dd><p>为 rbd-mirror 指定名字的 ID 部分。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-rbd-mirror-n">
<span id="cmdoption-rbd-mirror-name"></span><code class="sig-name descname"><span class="pre">-n</span></code><code class="sig-prename descclassname"> <span class="pre">TYPE.ID</span></code><code class="sig-prename descclassname"><span class="pre">,</span> </code><code class="sig-name descname"><span class="pre">--name</span></code><code class="sig-prename descclassname"> <span class="pre">TYPE.ID</span></code><a class="headerlink" href="#cmdoption-rbd-mirror-n" title="Permalink to this definition">¶</a></dt>
<dd><p>设置网关所需的 rados 用户名（如 client.rbd-mirror ）。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-rbd-mirror-cluster">
<code class="sig-name descname"><span class="pre">--cluster</span></code><code class="sig-prename descclassname"> <span class="pre">NAME</span></code><a class="headerlink" href="#cmdoption-rbd-mirror-cluster" title="Permalink to this definition">¶</a></dt>
<dd><p>指定集群名字（默认为 ceph ）。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-rbd-mirror-d">
<code class="sig-name descname"><span class="pre">-d</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-rbd-mirror-d" title="Permalink to this definition">¶</a></dt>
<dd><p>在前台运行，日志显示到 stderr 。</p>
</dd></dl>

<dl class="std option">
<dt id="cmdoption-rbd-mirror-f">
<code class="sig-name descname"><span class="pre">-f</span></code><code class="sig-prename descclassname"></code><a class="headerlink" href="#cmdoption-rbd-mirror-f" title="Permalink to this definition">¶</a></dt>
<dd><p>在前台运行，日志走向不受影响。</p>
</dd></dl>

</div>
<div class="section" id="id4">
<h2>使用范围<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
<p><strong class="program">rbd-mirror</strong> 是 Ceph 的一部分，这是个伸缩力强、开源、分布式的存储系统，更多信息参见 Ceph 文档 <a class="reference external" href="https://docs.ceph.com">https://docs.ceph.com</a> 。</p>
</div>
<div class="section" id="id5">
<h2>参考<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
<p><a class="reference internal" href="../rbd/"><span class="doc">rbd</span></a>(8)</p>
</div>
</div>



           </div>
           
          </div>
          <footer>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>